package router

import (
	"project-info/src/handle/system"
	"project-info/src/router/req"
	"project-info/src/router/variable"

	"github.com/gin-gonic/gin"
)

func init() {
	variable.InitRouteFunc = append(variable.InitRouteFunc, InitTestRoute)
}

func InitTestRoute(e *gin.Engine) {
	reqs := []*req.Conf{
		req.NewGet("/getMenu", system.GetMenu).RequiredPermissionCode("addMenu"),
	}
	req.BatchSetUpRouter(e.Group("/test"), reqs)
}
